home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5534 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: spock.asic.sc.ti.com!usenet
  2. From: "Billy N. Patton" <bpatton@asic.sc.ti.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: MSVC2.0 graphics Newbie
  5. Date: Mon, 05 Feb 1996 09:10:39 -0600
  6. Organization: Texas Instruments, Inc.
  7. Message-ID: <31161DEF.14B3@asic.sc.ti.com>
  8. NNTP-Posting-Host: bily-linux.asic.sc.ti.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b5 (WinNT; I)
  13.  
  14. A few questions about some problems.
  15.  
  16. 1.  How do I change the background color?
  17.     I've tried in CXXXView::CXXXView 
  18.     CClientDC dc(this);
  19.         dc.SetBkColor(RGB( 100 , 100 , 100 ));
  20.     OnPrepareDC(&dc);
  21.     This crashes on the OnPrepare
  22.     I've tried the same lines in OnInitialUpdate
  23.     and OnDraw.  Nothing seems to work;
  24.  
  25. 2.  How do I draw a rectangle that is not filled?
  26.     I need to see whats behind the rectangle.
  27.  
  28. 3.  In rubberbanding the rect I leave previously drawn
  29.     images on the screen.  How do I get rid of these after
  30.     OnMouseMove draws a new one?  Do I grab a bitmat
  31.     and redisplay it after each rectangle function?
  32.  
  33.  
  34. !!!WARNING!!! If you answer these questions I WILL be asking
  35. you more directly through email.
  36.  
  37. I am not a student looking for help!  I am a programmer
  38. looking to increase my knowledge of graphics.
  39.